$(document).ready(function () {
	debugger;
	//导出
    $(document).on('click', '#dataexport', function () {
        //获取数据长度
        var tr = $("#mycontent").find('tr').length;
        if (tr == 0) {
            myAlert("没有数据,不能导出！");
            return;
        } else {
            var delArray = [];
            $(".ckSelect").each(function () {
                var check = $(this).is(':checked');
                if (check) {
                    var _id = $(this).attr("ckId");
                    delArray.push(_id);
                }
            });
            if (delArray.length == 0) {
                myAlert("请选择你要导出的数据!");
            }
            //导出选中项
            else if (delArray.length > 0) {
                var modelIds = delArray.join(",");
                location.href = root + 'cms/fanliFlow/fileDownload?modelIds=' + modelIds;
            }
        }
    });
});